#!/usr/bin/env node

const log=console.log,
      usr = {
        name:'zhuyitong',
        age:21,
        qq:'1225378982.com'
      };
//用占位符输出

log('name:\t%s',usr.name);
log('age:\t%d',usr.age);
log('usr:\t%j',usr);

//log('name:\t%s\nage:\t%d\nusr:\t%j',usr.name,usr.age,usr);

//不用占位符输出
/*
log('qq:\t',usr.qq);//逗号自动算一个空格
log('qq:\t%s',usr.qq);//消耗掉‘，’占的空格从而对齐
log('qq:\t'+usr.qq);
*/
//log('age:\t%d,usr.age')

//console.table(usr);

console.error('Error:something wrong');


